package com.zhigh.test.testuinit.sty.pojo;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class ESBFieldValue {

    @JacksonXmlProperty(isAttribute = true)
    private Integer length;

    @JacksonXmlProperty(isAttribute = true)
    private String type;

    @JacksonXmlText
    private String value;

    public ESBFieldValue(Integer length, String type, String value) {
        this.length = length;
        this.type = type;
        this.value = value;
    }

    public ESBFieldValue() {
    }
}
